package com.chery.media.network.api

import com.chery.media.app.base.BaseResult
import com.chery.media.network.model.BannerBean
import com.chery.media.network.model.MusicDataBean
import com.chery.media.network.model.VersionBean
import kotlinx.coroutines.flow.Flow
import okhttp3.RequestBody
import retrofit2.http.*


interface AppService {

    /**
     * 获取版本信息
     */
    @POST("musicList/getMusicVersion")
    fun getVersionData(@Body body: RequestBody): Flow<BaseResult<VersionBean>>

    /**
     * 获取首页banner
     */
    @POST("banner/getDataByType")
    fun getBannerData(@Body body: RequestBody): Flow<BaseResult<BannerBean>>

    /**
     * 获取音乐数据
     */
    @POST("musicList/getMusicDataPage")
    fun getMusicData(@Body body: RequestBody): Flow<BaseResult<MusicDataBean>>

}